import request from '@/utils/request'
const api_name = '/user/course/course'
export default {
  deleteCourseImage(courseImage) {
    return request({
      url: api_name + '/deleteCourseImage',
      method: 'POST',
      data: courseImage,
    })
  },
  bulkDeleteCourseImage(courseImageList) {
    return request({
      url: api_name + '/bulk/deleteCourseImage',
      method: 'POST',
      data: courseImageList,
    })
  },
  saveCourse(obj) {
    return request({
      url: api_name + '/save',
      method: 'POST',
      data: obj,
    })
  },
  getCourseListByUserId(userId) {
    return request({
      url: api_name + '/' + userId,
      method: 'GET',
    })
  },
  courseAudit(courseId) {
    return request({
      url: api_name+'/audit',
      method: 'POST',
      data: courseId,
    })
  },
}
